package com.yc.cloud.admin.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * hw_region 创建参数
 *
 * @author kinggu
 * @since 2025-09-29
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "HwRegionCreateReqDTO", description = "hw_region创建参数")
public class HwRegionCreateReqDTO {

    @ApiModelProperty(value = "区域名称")
    @NotEmpty(message = "区域名称不能为空")
    private String name;

    @ApiModelProperty(value = "行政区划代码")
    private String code;

    @ApiModelProperty(value = "父级区域ID，0表示根节点")
    @NotNull(message = "父级区域ID不能为空")
    private Long parentId;

    @ApiModelProperty(value = "行政级别：1-省/直辖市, 2-市, 3-市辖区/县")
    @NotNull(message = "行政级别不能为空")
    private Integer level;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "区域描述")
    private String description;
}